package com.ceadeal.admin.group.wechat.model.resp;

import java.util.Date;

/**
 * 消息基类（公众帐号 -> 普通用户）
 * @author Yzw
 * @date 2015-01-28
 */
public class BaseMessage {
	// 接收方帐号（收到的OpenID）
	private String ToUserName;
	// 开发者微信号
	private String FromUserName;
	// 消息创建时间 （整型）
	private long CreateTime;
	// 消息类型（text/image/voice/video/music/news）
	private String MsgType;

	public BaseMessage() {
	}
	
	public BaseMessage(String fromUserName, String toUserName, String msgType) {
		super();
		ToUserName = fromUserName;
		FromUserName = toUserName;
		CreateTime = new Date().getTime();
		MsgType = msgType;
	}

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}
}
